<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<br>
<div class="container">
	<form:form commandName="userConfig" class="form-signin" action="./config" method="post">
		<h3 class="form-signin-heading">参数设置</h3>
		电费单价（单位：元/度）
		<form:errors path="electPrice" cssStyle="color:red"/> 
		<form:input label="电费单价" path="electPrice" type="text" class="input-block-level" placeholder="请输入电费" />
		水费单价（单位：元/吨）
		<form:errors path="waterPrice" cssStyle="color:red"/> 
		<form:input path="waterPrice" type="text" class="input-block-level" placeholder="请输入水费" /> 
		网费单价（单位：元/月）
		<form:errors path="netPrice" cssStyle="color:red"/> 
		<form:input path="netPrice" type="text" class="input-block-level" placeholder="请输入网费" /> 
		<button class="btn btn-normal btn-primary" type="submit">保存</button>
	</form:form>
</div>

<style type="text/css">
body {
	padding-top: 40px;
	padding-bottom: 40px;
	background-color: #f5f5f5;
}

.form-signin {
	max-width: 300px;
	padding: 19px 29px 29px;
	background-color: #fff;
	border: 1px solid #e5e5e5;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.form-signin .form-signin-heading,.form-signin .checkbox {
	margin-bottom: 10px;
}

.form-signin input[type="text"],.form-signin input[type="password"] {
	font-size: 16px;
	height: auto;
	margin-bottom: 15px;
	padding: 7px 9px;
}
</style>